#include <iostream>
using namespace std;
class Cat{
private:
    string name;
    static int num;
public:
    Cat(string name){
        this->name=name;
        num++;
    }
    ~Cat(){
        num--;
        cout<<"Cat: "<<name<<" is deleted!"<<endl;
    }
    static int getNum(){
        return num;
    }
    
};
int Cat::num=0;
int main(){
    Cat c1("Tom");
    Cat c2("Jerry");
    cout<<"There are "<<Cat::getNum()<<" cats."<<endl;
    return 0;
}